package groovy

String.metaClass.isPalrome={
        -> delegate == delegate.reverse()
    }
word= "asddsa"
println(word.isPalrome())
assert word.isPalrome()
word ="groovy"
println(word.isPalrome())
